<template>
    <div>
        404
        <router-link to="/find">返回首页</router-link>
        <span> {{S}}秒后自动跳转首页 </span>
    </div>
</template>

<script>
export default {
    name: 'RouterHomeworkNotfound',

    data() {
        return {
            S:3
        };
    },
    mounted(){
        let timeA = setInterval(() =>{
            if(this.S == 0){
                this.$router.push('/find')
                clearTimeout(timeA)
                return
            }
            this.S--
        },1000)
    },

    methods: {
        
    },
};
</script>

<style lang="scss" scoped>

</style>